<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <script type="text/javascript" src="${ctx}/appjs/market/marketActivityRecord.js"></script>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return '<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>运营管理</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>活动记录</strong>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a href="javascript:window.history.back()"><i class="fa fa-times"></i> 返回</a>' +
            '</li>' +
            '</ol>';
    });

    var has_add = '';
    var has_edit = '';
    var has_delete = '';
</script>

<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body">
                <div class="row">
                    <shiro:hasPermission name="OperationsManagement_register_reload">
                        <div class="pull-left search col-md-2">
                            <input id="beginTime" name="beginTime" type="text" class="form-control"
                                   placeholder="开始时间" readonly>
                        </div>
                        <div class="pull-left search col-md-2">
                            <input id="endTime" name="endTime" type="text" class="form-control"
                                   placeholder="结束时间" readonly>
                        </div>
                        <div class="pull-left search col-md-1">
                            <button class="btn btn-success" onclick="marketActivityRecord.reLoad()">查询</button>
                        </div>
                    </shiro:hasPermission>
                    <shiro:hasPermission name="OperationsManagement_register_add">
                        <div class="pull-left search col-md-0.5">
                            <button type="button" class="btn  btn-primary"
                                    onclick="marketActivityRecord.addMarketActivity()">
                                添加营销活动
                            </button>
                        </div>
                    </shiro:hasPermission>
                    <table id="exampleTable" data-mobile-responsive="true">
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">


    layui.use('laydate', function () {
        var laydate = layui.laydate;
        var beginTime = laydate.render({
            elem: '#beginTime',
            type: 'datetime',
            format: 'yyyy-MM-dd HH:mm:ss',
            trigger: 'click'
        });
        var endTime = laydate.render({
            elem: '#endTime',
            type: 'datetime',
            format: 'yyyy-MM-dd HH:mm:ss',
            trigger: 'click'
        });

    });

    marketActivityRecord.init();
</script>
</body>
</html>